
package com.su.dev.main;

import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.su.dev.sipder.URLMatcher;

public class Main {
    public static void main(String args[]) {
        URLMatcher videoMatch = new URLMatcher();
        String urlMathcer = "(https|http)://[^\\s^\"]+";
        Pattern pattern = Pattern.compile(urlMathcer);
        
        String url = videoMatch.getHtml("http://news.ifeng.com/a/20160124/47210540_0.shtml");
        Matcher matcher = pattern.matcher(url);
        while (matcher.find()){
            System.out.println(matcher.group(0));
        }
       /* List<String> imageUrl = videoMatch.getImageUrl(url);
        for (int i = 0; i <imageUrl.size(); i++) {
            String urlString = imageUrl.get(i);
            System.out.println(urlString);
            String resoult = videoMatch.getRealImgSrc(urlString);
            System.out.println(resoult);
        }*/
    }

}
